<form class="am-form  am-form-horizontal dux-form"  method="post">
    <fieldset>
        <div class="am-form-group">
            <label class="am-u-md-2 am-u-sm-12 am-form-label">发货快递</label>
            <div class="am-u-md-10 am-u-sm-12">
                <div>
                    <select name="name" data-am-selected="{btnWidth: '100%'}" required>
                        <!--loop{$expressList as $vo}-->
                        <option value="{$vo.name}"  {$vo.name == $orderInfo.delivery_name ? 'selected' : ''}>{$vo.name}</option>
                        <!--{/loop}-->
                    </select>
                </div>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-md-2 am-u-sm-12 am-form-label">快递单号</label>
            <div class="am-u-md-10 am-u-sm-12">
                <input type="text" name="no" placeholder="请输入快递单号" required>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-md-2 am-u-sm-12 am-form-label">快递备注</label>
            <div class="am-u-md-10 am-u-sm-12">
                <textarea name="remark"  placeholder="可选备注信息"></textarea>
            </div>
        </div>
        <input type="hidden" name="order_id" value="{$orderInfo.order_id}">
    </fieldset>
</form>
<div class="dux-dialog-foot">
    <button class="am-btn am-btn-primary" id="submit" type="button">确认发货</button>
</div>

<script>
    Do('base', function() {
        $('#submit').click(function() {
            app.ajax({
                url : '{url()}',
                type : 'post',
                data : $('form').serialize(),
                success : function(info) {
                    parent.location.reload();
                }
            });
        });
    });
</script>